<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html" charset="utf-8">
    <title>系统设置</title>
	<link rel="stylesheet" href="../../jquery-easyui-1.3.6/themes/default/easyui.css" type="text/css"></link>
    <link rel="stylesheet" href="../../css/icons/icon.css" type="text/css"></link>
	<link rel="stylesheet" type="text/css" href="../demo.css"></link>
	<script type="text/javascript" src="../../jquery-easyui-1.3.6/jquery.min.js"></script>
    <script type="text/javascript" src="../../jquery-easyui-1.3.6/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../../jquery-easyui-1.3.6/locale/easyui-lang-zh_CN.js"charset="utf-8"></script>
<script type="application/javascript">  
  
$.fn.serializeObject = function()    
{    
   var o = {};    
   var a = this.serializeArray();    
   $.each(a, function() {    
       if (o[this.name]) {    
           if (!o[this.name].push) {    
               o[this.name] = [o[this.name]];    
           }    
           o[this.name].push(this.value || '');    
       } else {    
           o[this.name] = this.value || '';    
       }    
   });    
   return o;    
};  
  
function onClik(){  
        //var data = $("#form1").serializeArray(); //自动将form表单封装成json  
        //alert(JSON.stringify(data));  
        var jsonuserinfo = $('#form1').serializeObject();
        alert(JSON.stringify(jsonuserinfo));  
}  
</script>
<script type="text/javascript">
	//单选按钮选中后双击取消选中
	window.onload = function() {
		// setRadio("myDiv", "form1", "alreadySelected"); 
		var radios = document.getElementsByTagName("input");
		for ( var i = 0; i < radios.length; i++) {
			if (radios[i].type == "radio") {
				radios[i].ondblclick = function() {
					this.checked = false;
				}
			}
		}
	}
</script>
<script type="text/javascript">
    //清空表单
		function clearForm(){
			$('#form1').form('clear');
		}
</script>
</head>

<body>
	<div class="easyui-panel" title="系统设置" style="width:800px;">
		<div style="padding:10px">
	    <form id="form1" name="form1" method="post" action="">
	    	<table>
	    			<td align="right">系统中文名称</td>
	    			<td><textarea id="system_cname"  name="system_cname" style="height:20px;">一洲货运有限公司</textarea></td>
					<td align="right">系统英文名称</td>
	    			<td><textarea id="system_ename"  name="system_ename" style="height:20px;">E-CONITL</textarea></td>
					<td align="right">单位代码</td>
	    			<td><textarea id="company_code"  name="company_code" style="height:20px;"></textarea></td>
	    		</tr>
	    		<tr>
	    			<td align="right">EDI发送方代码</td>
	    			<td><textarea id="edi_code"  name="edi_code" style="height:20px;">ECONTRANS</textarea></td>
					<td align="right">装货港代码</td>
	    			<td><select id="load_code" name="load_code" class="easyui-combobox" style="width:150px;"><option value="CNNBO">CNNBO|宁波</option><option value="NEWYORK">USANEWYORK|美国纽约</option></select></td>
					<td align="right">提单签发地</td>
	    			<td><textarea id="issue_addr" name="issue_addr" style="height:20px;">AT NINGBO</textarea></td>	
	    		</tr>
	    		<tr>
	    			<td align="right">美元开户行</td>
					<td><textarea id="dollar_bank" name="dollar_bank" style="height:20px;">建行宁波市住房城市建设局</textarea></td>
					<td align="right">美元账号</td>
					<td><textarea id="dollar_account" name="dollar_account" class="easyui-numberbox" style="height:20px;">33114102000220033271</textarea></td>
	    		</tr>
				<tr>
	    			<td align="right">人民币开户行</td>
					<td><textarea id="rmb_bank" name="rmb_bank" style="height:20px;">建行宁波市住房城市建设局</textarea></td>
					<td align="right">人民币账号</td>
					<td><textarea id="rmb_account" name="rmb_account" class="easyui-numberbox" style="height:20px;">33101983436050034455</textarea></td>
	    		</tr>
	    		<tr>
	    			<td align="right">业务号编制方案</td>
					<td><input name="business_pro" type="radio" value="公司统一编号" id="business_pro" checked="checked" />公司统一编号 <input name="business_pro" type="radio" value="按业务人员编号" id="business_pro" />按业务人员编号</td>
					<td align="right">业务号前缀</td>
					<td><textarea id="business_title" name="business_title"  style="height:20px">2009</textarea></td>
	    		</tr>
	    		<tr>
				    <td align="right">印花税</td>
					<td><textarea id="printing" class="easyui-numberbox" name="printing"  style="height:20px;"  data-options="min:0,precision:4">0.0005</textarea></td>
					<td align="right">汇率</td>
	    			<td><textarea id="rate" class="easyui-numberbox" name="rate" style="height:20px;" data-options="min:0,precision:2">7.74</textarea></td>
	    		</tr>
				<tr>
				    <td align="right">营业执照号</td>
					<td><textarea id="licence" class="easyui-numberbox" name="licence"  style="height:20px;">3302002004848</textarea></td>
					<td align="right">税务登记号</td>
	    			<td><textarea id="tax" class="easyui-numberbox" name="tax" style="height:20px;">330205732096562</textarea></td>
	    		</tr>
	    	</table>
	    </form>
	    </div>
	    <div style="text-align:center;padding:10px">
	    	<a onclick="onClik();" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-ok'">提交</a>
	    	<a onclick="clearForm()" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-undo'">重置</a>
	    </div>
	</div>
</body>
</html>
